<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>hhh</title>
</head>
<body>
<div id="hh"></div>
<script>
    let ws = new WebSocket("ws://localhost:81/template/websocket/"+new Date().getTime())
    ws.onopen = function (args) {
        console.log('onopen', args)
    }

    ws.onmessage = function (args) {
        console.log('onmessage', args)
    }

    ws.onclose = function (args) {
        console.log('onclose', args)
    }
    ws.onerror = function (args) {
        console.log('onerror', args)
    }
</script>
</body>
</html>